package com.yyy.lambda;

import java.util.function.Supplier;

public class TestConstructMethod {

    public static void main(String[] args) {

        Supplier<Person> personSupplier = Person::new;
        Person person = personSupplier.get();
        System.out.println(person);

    }

    static class Person{
        private String name;

        public Person() {

        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
